<?php

namespace app\data\model;

use think\admin\Model;
use think\helper\Str;

class ActEmailNotice extends Model
{
    protected $table = 'act_email_notice';
    

    public function getStatusNameAttr($value,$data)
    {
        $status = [0=>'待发送',1=>'已发送',2=>'已删除'];
        return $status[$data['status']];
    }

    public function getFrontTimeAttr($value,$data){
        return $data['send_start'] ? date('Y-m-d H:i',$data['send_start']) : '';
    }

  

}